<h1>Sessions</h1>
<h2><?php echo $confName ?></h2>


 <?php  
	if($sessions){
	echo '<table cellspacing="10"> <tr><td>Code</td><td>Session</td><td>Time</td><td>Description</td><td>Attending</td><td>Max</td></tr>';
    foreach ($sessions as $session){
        
        echo "<tr><td>";
        echo $session->getSessionCode();
        echo "</td><td><strong>";
        echo $session->getName();
        echo "</td><td>";
        echo $session->getTimeStart(" l h:ia");
        echo " - ";
        echo $session->getTimeEnd("h:ia");
        echo "</td><td>";
        echo $session->getDescription();
        echo "</td><td>";
		echo $session->getNbSessionRegistrations();
        echo link_to("  (roster)", 'reports/sessionroster?id='.$session->getId());
        echo "</td><td>";
        echo $session->getMaxEnroll();
        echo "</td></tr>";
		

    } 
	echo '</table>';
	}
	else{
		echo "<p>This Conference has no sessions</p>";
	} 

?>

